window.onload = function() {
//	bubbleFun(2);
	
	new Vue({
		el: "#bubbles",
		data: {
			ads: [],
		},
		methods: {
			GetAdsInfo() {
				var _this = this;
				axios({
					method: "get",
					url : "http://localhost:8080/MillionYuan/AdInfo?type=homepage",
				}).then(function(resp) {
//					_this.ads = resp.data;
					bubbleFun(resp.data);
				})
			}
		},
		mounted() {
			this.GetAdsInfo();
//			bubbleFun(this.ads);
		}
	})
	
}
